home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-01-29 | 1.2 KB | 55 lines | [TEXT/MPS ] |
-
- {
- Created: Monday, September 16, 1991 at 12:56 AM
- ShutDown.p
- Pascal Interface to the Macintosh Libraries
-
- Copyright Apple Computer, Inc. 1987-1991
- All rights reserved
- }
-
-
- {$IFC UNDEFINED UsingIncludes}
- {$SETC UsingIncludes := 0}
- {$ENDC}
-
- {$IFC NOT UsingIncludes}
- UNIT ShutDown;
- INTERFACE
- {$ENDC}
-
- {$IFC UNDEFINED UsingShutDown}
- {$SETC UsingShutDown := 1}
-
- {$I+}
- {$SETC ShutDownIncludes := UsingIncludes}
- {$SETC UsingIncludes := 1}
- {$IFC UNDEFINED UsingTypes}
- {$I $$Shell(PInterfaces)Types.p}
- {$ENDC}
- {$SETC UsingIncludes := ShutDownIncludes}
-
- CONST
- sdOnPowerOff = 1; {call procedure before power off.}
- sdOnRestart = 2; {call procedure before restart.}
- sdOnUnmount = 4; {call procedure before unmounting.}
- sdOnDrivers = 8; {call procedure before closing drivers.}
- sdRestartOrPower = 3; {call before either power off or restart.}
-
- PROCEDURE ShutDwnPower;
- INLINE $3F3C,$0001,$A895;
- PROCEDURE ShutDwnStart;
- INLINE $3F3C,$0002,$A895;
- PROCEDURE ShutDwnInstall(shutDownProc: ProcPtr;flags: INTEGER);
- INLINE $3F3C,$0003,$A895;
- PROCEDURE ShutDwnRemove(shutDownProc: ProcPtr);
- INLINE $3F3C,$0004,$A895;
-
-
- {$ENDC} { UsingShutDown }
-
- {$IFC NOT UsingIncludes}
- END.
- {$ENDC}
-
-